<%-- 
    Document   : message
    Created on : 2014-4-7, 8:20:46
    Author     : lcfgly
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page trimDirectiveWhitespaces="true" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
        <title>${userinfo.users.uname} 渔具价格，渔具报价</title>
        <%@include file="/WEB-INF/jspf/view/css.jspf" %>
    </head>
    <body style="padding-top:50px;min-width:900px;">
        <jsp:include page="/header/${userinfo.users.uid}.html" />
        <div class="bodyinfo">
            <div class="container contentbody">
                <!--中部-->
                    <!--中部左侧-->
                    <%@include file="left.jspf" %>
                    <!--中部左侧-->
                    <!--中部右侧-->
                    <div class="col-md-9 marginbottom10" style="padding-right:0px">
                        <!--在线留言-->
                        <div class="titleline">
                            在线留言
                        </div>
                        <div class="bgwhite">
                            <c:if test="${empty info.data}">
                                    <div class="alert alert-warning nomargin">
                                        暂无留言
                                    </div>
                           </c:if>
                            <ul class="msgbox nomargin">
                                <c:forEach var="item" items="${info.data}">
                                    <li>
                                        <div class="user">
                                            <span class="name col-md-12 nopadding">${item.user.uname}(<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${item.message.uptime}" />)留言：</span>
                                            <span class="col-md-12" style="margin-top:10px;">${item.message.message}</span>
                                        </div>
                                        <c:if test="${!empty item.message.back}">
                                            <div class="shop">
                                                <span class="name col-md-12 nopadding">商家(<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${item.message.backtime}" />)回复：</span>
                                                <span class="col-md-12" style="margin-top:10px;">${item.message.back}</span>
                                            </div>
                                        </c:if>
                                    </li>
                                </c:forEach>
                            </ul>
                        </div>
                        <!--end在线留言-->
                        <c:if test="${info.page.lastpage > 1}">
                            <div class="col-md-12 bgwhite text-center">
                                <ul class="pagination">
                                    <c:if test="${info.page.nowpage > 1}">
                                        <li><a href="<c:url value="/shopmessage/${userinfo.users.uid}/${info.page.firstpage}.html" />">首页</a></li>
                                        </c:if>
                                        <c:if test="${info.page.uppage > 1}">
                                        <li><a href="<c:url value="/shopmessage/${userinfo.users.uid}/${info.page.uppage}.html" />">&laquo;</a></li>
                                        </c:if>
                                        <c:forEach var="item" items="${info.page.page}">
                                        <li><a href="<c:url value="/shopmessage/${userinfo.users.uid}/${item}.html" />">${item}</a></li>
                                        </c:forEach>
                                        <c:if test="${info.page.downpage > info.page.lastpage}">
                                        <li><a href="<c:url value="/shopmessage/${userinfo.users.uid}/${info.page.downpage}.html" />">&raquo;</a></li>
                                        </c:if>
                                        <c:if test="${info.page.lastpage > 1}">
                                        <li><a href="<c:url value="/shopmessage/${userinfo.users.uid}/${info.page.lastpage}.html" />">末页</a></li>
                                        </c:if>
                                </ul>
                            </div>
                        </c:if>
                    </div>
                    <!--end中部右侧-->
                <!--end中部-->
                <div class="col-md-12 nopadding" id="mesg">
                    <div class="titleline">留言</div>
                    <div class="bgwhite clearfix" style="margin-bottom:20px; padding-bottom:20px;">
                        <textarea class="col-md-12" rows="5" id="messageadd"></textarea>
                        <div class="col-md-12" style="margin-top:5px;">验证码：<input type="text" placeholder="验证码" name="vcode"><img src="<c:url value="/vcode.html" />" alt="看不清？点击更换" style="cursor: pointer;" onclick="changeAuthCode()" id="vdimgck"><button class="btn btn-info pull-right" id="messageaddbtn">提交</button></div>
                    </div>
                </div>
            </div>
            <%@include file="/WEB-INF/jspf/view/foot.jspf" %>
        </div>
        <%@include file="/WEB-INF/jspf/view/js.jspf" %>
        <script src="<c:url value="/js/view/message.js" />"></script>
    </body>
</html>
